package com.stedu.mall.common.service;

import com.github.pagehelper.PageInfo;
import com.stedu.mall.common.bean.Order;
import com.stedu.mall.common.bean.OrderVo;
import com.stedu.mall.common.exception.SteduException;

public interface OrderService {
    //查询所有订单
    PageInfo<Order> selectByOrder(Order order, Integer pageNum, Integer pageSize);
    //根据订单id进行查询
    Order selectById(String id, Integer userId) throws SteduException;
    //根据订单id进行查询
    Order selectId(String id, Integer userId) throws SteduException;
    //修改订单信息 - 权限
    boolean updateOrder(Order order);
    //添加
    void insert(OrderVo orderVo) throws SteduException;
    //支付
    void pay(OrderVo orderVo) throws SteduException;

    PageInfo<Order> selectByCondition(Order condition, Integer pageNum, Integer pageSize);

    Order selectByDId(String id);
}
